<!-- 车辆审批详情 -->
<template>
	<view class="main-box">
		<view class="main-box-item">
			<view class="box-info-label">
				审批结果
			</view>
			<view class="status" :style="getCarApproveState(item.state).stylenoborder">
				{{getCarApproveState(item.state).value}}
			</view>
		</view>
		<view class="main-box-item">
			<view class="box-info-label">
				审批人
			</view>
			<view class="box-info-value">
				{{item.updater||''}}
			</view>
		<!-- 	<view class="box-info-value phone">
				{{item.phone||''}}
			</view> -->
		</view>
		<!-- 审批后显示 （"0": // 通过 ， "3": // 拒绝）-->
		<block v-if="item.state=='0'||item.state=='3'">
			<view class="main-box-item">
				<view class="box-info-label">
					审批意见
				</view>
				<view class="box-info-value">
					{{item.suggestion||''}}
				</view>
			</view>
			<view class="main-box-item">
				<view class="box-info-label">
					审批时间
				</view>
				<view class="box-info-value">
					<uni-dateformat :date="item.updatetime"></uni-dateformat>
				</view>
			</view>
		</block>
	</view>
</template>

<script>
	import {
		Platform,
	} from '@/static/config.js';
	import {
		GetCarApproveState
	} from "@/common/util.js"
	export default {
		props: ['item'],
		data() {
			return {
			}
		},
		mounted() {},
		methods: {
			getCarApproveState(val) {
				return GetCarApproveState(val);
			},
		}
	}
</script>

<style lang='scss' scoped>
	.main-box {
		overflow: scroll;
		background: #e9e9e9;
		height: 100%;
		padding-top: 10rpx;

		.main-box-item {
			display: flex;
			align-items: center;
			height: 50px;
			background: #FFFFFF;
			/* box-shadow: 0px 2px 5px #F0F0F0; */
			/* border-radius: 4px; */
			vertical-align: middle;
			padding: 0px 10px;
			border-bottom-color: #E6E6E6;
			border-bottom-style: solid;
			border-bottom-width: 0.5px;

			.box-info-label {
				margin: 0 10px;
				font-size: 14px;
				font-weight: 500;
			}

			.box-info-value {
				margin-left: 10px;
				font-size: 14px;
				color: #B5B5B5;
				flex: 1;
				display: flex;

				.img {
					height: 38rpx;
					width: 38rpx;
					margin-left: 20rpx;
				}

			}
			
			.phone{
				color: #1296db;
				font-size: 22rpx;
			}

			.status {
				float: right;
				font-size: 22rpx;
				text-align: center;
				broder: 2rpx;
				/* border-width: 1rpx; */
				/* border-style: solid; */
				height: 38rpx;
				width: 80rpx;
				border-radius: 10rpx;
			}
		}
	}
</style>
